package cn.wenhe9.yygh.order.receiver;

import cn.wenhe9.yygh.order.service.OrderService;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author DuJinliang
 * 2022/4/8
 */
@Component
@EnableBinding(Sink.class)
public class OrderReceiver {

    @Resource
    private OrderService orderService;

    @StreamListener(Sink.INPUT)
    public void patientTips(){
        orderService.patientTips();
    }
}
